package com.ruoyi.common.constant;

import com.google.common.collect.ImmutableMap;

import java.util.Map;

/**
 *
 *@author wangkk
 *@date 2025-02-11 11:01
 */
public interface SyncCommands {

    /**
     * 1 同步大屏粉丝数排名
     */
     int SYNC_FANS_COUNT = 1;

    /**
     * 2 同步大屏基金数排名
     */
     int SYNC_MONEY_ORDER = 2;

    /**
     * 3 统计并淘汰选手
     */
     int SYNC_STATISTICS_PLAYER = 3;

    /**
     * 4 活动结束
     */
     int SYNC_FINISH_ACTIVITY = 4;

    /**
     * 5 同步票数排名
     */
     int SYNC_VOTES = 5;

    /**
     * 6 同步红人基金数,只同步一个用户的
     */
     int SYNC_PLAYER_MONEY = 6;

    /**
     * 7 淘汰红人
     */
     int SYNC_OUT_PLAYER = 7;

     Map<Integer,String> COMMAND_NAME_MAP = ImmutableMap.<Integer, String>builder()
             .put(SYNC_FANS_COUNT, "SYNC_FANS_COUNT")
             .put(SYNC_MONEY_ORDER, "SYNC_MONEY_ORDER")
             .put(SYNC_STATISTICS_PLAYER, "SYNC_STATISTICS_PLAYER")
             .put(SYNC_FINISH_ACTIVITY, "SYNC_FINISH_ACTIVITY")
             .put(SYNC_VOTES, "SYNC_VOTES")
             .put(SYNC_PLAYER_MONEY, "SYNC_PLAYER_MONEY")
             .put(SYNC_OUT_PLAYER, "SYNC_OUT_PLAYER")
             .build();
}
